/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.me.backing.persistance;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author Jayasundara
 */
public class PersistanceManager {
//    private EntityManagerFactory emf = null;
//    private EntityManager entityManager = null;

//    public EntityManager getEntityManager() {
//        return entityManager;
//    }
//
//    public void setEntityManager(EntityManager entityManager) {
//        this.entityManager = entityManager;
//    }
//
//    @PostConstruct
//    public void init(){
//        emf = Persistence.createEntityManagerFactory("MyAppPU");
//        entityManager = emf.createEntityManager();
//    }
//
//    @PreDestroy
//    public void destry(){
//        entityManager.close();
//    }
    private String value;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
